<include file="public@header" />
</head>
<body>
    <div class="layui-fluid js-check-wrap">
        <div class="layui-card">
            <div class="layui-card-header">
                <h3>{:lang('ADMIN_USER_LOGIN_LOG')}</h3>
            </div>
            <div class="layui-card-body">
                <form class="form-search layui-form-item" method="post" action="{:url('User/login_log')}">
                    <div class="layui-inline">
                        <label class="layui-form-label">用户名:</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="user_login" style="width: 120px;" value="{:input('request.user_login/s','')}" placeholder="请输入{:lang('USERNAME')}">
                        </div>
                    </div>
                    <div class="layui-inline">                        
                        <input type="submit" class="layui-btn layui-btn-normal" value="{:lang('SEARCH')}" />
                    </div>
                </form>
            </div>

            <form class='js-ajax-form' method="post">
                <table class="layui-table">
                    <thead>
                        <tr>
                            <!-- <th width="20" class="text-center">
                                <div class="custom-checkbox">
                                    <input type="checkbox" id="checkall" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                                    <label for="checkall"></label>
                                </div>
                            </th> -->
                            <th>ID</th>
                            <th>管理员</th>
                            <th>登录时间</th>
                            <th>IP地址</th>
                        </tr>
                    </thead>
                    <tbody>
                        <foreach name="log_list" item="vo">
                        <tr>
                            <!-- <td class="text-center">
                                <div class="custom-checkbox">
                                    <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" id="chk_{$vo.log_id}"
                                       value="{$vo.log_id}" title="ID:{$vo.log_id}">
                                    <label for="chk_{$vo.log_id}"></label>
                                </div>
                            </td> -->
                            <td>{$vo.log_id}</td>
                            <td>{$vo.user_login}</td>
                            <td>{:date('Y-m-d H:i:s',$vo['login_time'])}</td>
                            <td>{$vo.ip_address}</td>
                        </tr>
                        </foreach>
                    </tbody>
                </table>

                <if condition="$page">
                    <div class="pagination-row clearfix">
                        <div class="layui-col-sm6 text-left-sm">
                            <!-- 删除选中项 -->
                            <!-- <if condition="cmf_auth_check(cmf_get_current_admin_id(), 'admin/User/login_delete')">
                                <button class="layui-btn layui-btn-danger layui-btn-sm js-ajax-submit" type="submit"
                                        data-action="{:url('User/login_delete')}" data-subcheck="true" data-msg="您确定删除吗？">
                                    {:lang('DELETE_SELECTED')}
                                </button>
                            </if> -->
                        </div>
                        <div class="pages">{$page|default=''}</div>
                    </div>
                </if>
            </form>
        </div>
    </div>
<include file="public@footer" />
